package com.jn.exam.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 总题库
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Question对象", description = "总题库")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ExcelIgnore
    private String id;

    @ApiModelProperty(value = "整个题目描述")
    @Excel(name = "题目题干")
    private String name;

    @ApiModelProperty(value = "答案")
    @Excel(name = "答案")
    private String answer;

    @ApiModelProperty(value = "题目类型")
    @Excel(name = "题目类型(单选题/多选题/判断题/填空题/简答题/计算题/应用题/论述题)",replace = {"单选题_1","多选题_2","判断题_3","填空题_4","简答题_5","计算题_6","应用题_7","论述题_8"})
    private String type;

    @ApiModelProperty(value = "所属专业")
    @Excel(name = "所属专业(计算机科学与技术/软件工程/英语/数媒/整创)",replace = {"计算机科学与技术_1","软件工程_2","英语_3","数媒_4","整创_5"})
    private String major;

    @ApiModelProperty(value = "所属科目")
    @Excel(name = "所属科目(语文/英语/高等数学1 /高等数学2/大学物理1/大学物理2/计算机系统与组成原理/编译原理/数据库)",replace = {"语文_1","英语_2","高等数学1_3","高等数学2_4","大学物理1_5","大学物理2_6","计算机系统与组成原理_7","编译原理_8","数据库_9"})
    private String subject;


    @ApiModelProperty(value = "难度等级")
    @Excel(name = "难度等级，共五个等级1-5")
    private Integer level;

    @ApiModelProperty(value = "是否删除 1表示已删除")
    @TableLogic
    @ExcelIgnore
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建")
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date gmtCreate;

    @ApiModelProperty(value = "修改")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Date gmtModified;


}
